
package com.avocado.base.dto.organization;

import com.avocado.base.validator.organization.OrganizationAddCodeValidation;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class OrganizationAddDto extends OrganizationDto{


	@NotBlank(message = "操作失败,代码不能为空!")
	@NotNull(message ="操作失败,代码不能为空!")
	@OrganizationAddCodeValidation
	private String code;

}
